package com.company.factory;

import com.company.dao.UserDao;
import com.company.dao.impl.UserDaoImpl;

/**
 * 通过实例工厂方法实例化 Bean
 */
public class MyDynamicFactory {
    public UserDao getUserDao(){
        System.out.println("实例工厂方法······");
        return new UserDaoImpl();
    }
}
